﻿using ConfigCreate.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Environment;

namespace ConfigCreate
{
    /// <summary>
    /// 打开目录对话框控件
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
    public class CreateOpenFolderAttribute : CreateBaseAttribute
    {
        /// <summary>
        /// 打开目录对话框控件
        /// </summary>
        /// <param name="header_name">大类别名</param>
        /// <param name="group_name">组名</param>
        /// <param name="title">控件标题</param>
        public CreateOpenFolderAttribute(string header_name, string group_name, string title) : base(header_name, group_name, title)
        { }

        /// <summary>
        /// 对话框提示
        /// </summary>
        public string? DialogDescription { get; set; }
        /// <summary>
        /// 是否显示新建目录按钮
        /// </summary>
        public bool ShowNewFolderButton { get; set; }
        /// <summary>
        /// 对话框根目录
        /// </summary>
        public SpecialFolder RootFolder { get; set; } = SpecialFolder.Desktop;
        /// <summary>
        /// 是否为只读模式
        /// </summary>
        public bool IsReadonly { get; set; }
    }
}
